/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cn.pconline.autoclub.entity;

import cn.pconline.autoclub.util.ClubModule;
import org.gelivable.dao.Column;
import org.gelivable.dao.Entity;
import org.gelivable.dao.Id;
import org.gelivable.dao.Transient;

/**
 *
 * @author ppc
 */
@Entity(tableName="ac_club_module_relation")
public class ClubModuleRelation {
    /** 隐藏状态 **/
    public static final int STATUS_HIDDEN = -1;
    /** 正常状态 **/
    public static final int STATUS_NORMAL = 0;
    /** 所有 **/
    public static final int STATUS_ALL = 1;
    @Id
    @Column(name="club_id")
    private long clubId; //车友会ID
    @Id
    @Column(name="module_id")
    private long moduleId; //车友会版块ID
    @Column(name="status")
    private int status; //状态,0:显示,1:隐藏
    @Column(name="seq")
    private int seq;
    @Transient
    private ClubModule clubModule;

    public long getClubId() {
        return clubId;
    }

    public long getModuleId() {
        return moduleId;
    }
    

    public int getStatus() {
        return status;
    }

    public int getSeq() {
        return seq;
    }

    public ClubModule getClubModule() {
        return clubModule;
    }


    public void setClubId(long clubId) {
        this.clubId = clubId;
    }

    public void setModuleId(long moduleId) {
        this.moduleId = moduleId;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public void setSeq(int seq) {
        this.seq = seq;
    }

    public void setClubModule(ClubModule clubModule) {
        this.clubModule = clubModule;
    }
    
}
